
Vue.component2('a_1_0_2_18_1', {  
    template: `
        <div :class="{ 'a_1_0_2_18_1_lines test': data.true, 'a_1_0_2_18_1_lines_onclick': data.onclick_flag }" class="" @click="handle_click" v-show="show_flag">
        <span :style="'padding-left: '+data._space_+'px;'"></span>
        <span  v-if="data.icon1_show_flag":class="{'icon iconfont':data.true,'icon-right':data.close,'icon-down':data.close==false}"></span>
        
        <span>{{data.name}}</span>
        </div>
`,
data(){
    return{
        show_flag:true,
        data:{
            onclick_flag:false,
            icon1_show_flag:true,
            click:null,
            click_obj:null,
            true:true,
            false:false,
            close:true,
            name:"",
            _space_:0,
        }
    }
},
methods:{
    handle_click:function(event){
        //点击当前 高亮显示
        try{//console.log("高亮",this.data.path);
this.data.tree_data.set_onclick_flag(this.data.path)}catch{}
        if (this.data.click){
            try{
                this.data.click(event)
                
                // console.log("start click2")
            }
            catch{}
            return 
        }
        if (this.data.click_obj){
            try{
                lhp_run_func(this.data.click_obj.func,this.data.click_obj.args)
            
                // console.log("start click3")
            }
            catch{}
            return 
        }
        try{
            this.data.click_handle(this.data.path,this.data.close);
        }catch{}
    }
}})